<%--
  Created by IntelliJ IDEA.
  User: lt
  Date: 2018/6/21
  Time: 21:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://shiro.apache.org/tags" prefix="shiro" %>
<c:set var="contextPath" value="${pageContext.request.contextPath}"></c:set>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>卷烟申购 -- 99999</title>
    <link rel="stylesheet" href="${contextPath}/static/statistics/css/bootstrap.min.css">
    <link rel="stylesheet" href="${contextPath}/static/statistics/css/bootstrap-datetimepicker.min.css">
    <link rel="stylesheet" href="${contextPath}/static/layer/css/layui.css">
    <script src="${contextPath}/static/statistics/js/jquery.js"></script>
    <script src="${contextPath}/static/statistics/js/bootstrap.min.js"></script>
    <script src="${contextPath}/static/statistics/js/bootstrap-datetimepicker.min.js"></script>
    <script src="${contextPath}/static/statistics/js/bootstrap-datetimepicker.fr.js"></script>
    <script src="${contextPath}/static/statistics/js/bootstrap-datetimepicker.zh-CN.js"></script>
    <script src="${contextPath}/static/statistics/js/vue.js"></script>
    <script src="${contextPath}/static/statistics/js/echarts.min.js"></script>
    <script type="text/javascript" src="${contextPath}/static/statistics/js/jquery.mockjax.js"></script>
    <script type="text/javascript" src="${contextPath}/static/statistics/js/jquery.autocomplete.js"></script>

    <link rel="stylesheet" href="${contextPath}/static/XiaLaDuoXuan/css/public.css" media="all" />

    <link href="${contextPath}/static/ztree/css/zTreeStyle.css" rel="stylesheet"/>
    <script type="text/javascript" src="${contextPath}/static/ztree/js/jquery.ztree.core-3.5.js"></script>
    <script type="text/javascript" src="${contextPath}/static/ztree/js/jquery.ztree.excheck-3.5.js"></script>

    <style>
        .autocomplete-suggestions {
            border: 1px solid #999;
            background: #FFF;
            overflow: auto;
        }

        .autocomplete-suggestion {
            padding: 2px 5px;
            white-space: nowrap;
            overflow: hidden;
        }

        .autocomplete-selected {
            background: #F0F0F0;
        }

        .autocomplete-suggestions strong {
            font-weight: normal;
            color: #3399FF;
        }

        .layui-input{
            height: 30px;
        }
        .multiSelect{
            margin-top: -33px;
        }
    </style>
</head>
<body style="background: rgba(119, 118, 118, 0.15);">
<div class="container-fluid" id="app">
    <form class="form-inline layui-form" style="margin-top: 50px; margin-bottom: 5px;">
        <button type="button" class="btn btn-success" onclick="queryOrder();">查询</button>
        <button type="button" title="根据查询条件导出所有记录" onclick="exportExcel();"
                class="btn btn-info">导出Excel
        </button>
        <button type="button" class="btn btn-success" onclick="doPrint();" style="margin-top: 0px;">打印</button>
        <button type="button" class="btn btn-success" onclick="javascript:window.history.go(-2);window.close();">返回</button>
    </form>
    <div class="row" style="background-color: rgb(53, 147, 202);margin-right: 0px;margin-left: 0px; height: 37px;">
        <div class="col-sm-10" style="margin-top: 6px;">
            <strong style="font-size: 18px;color: #f9f9f9;">6666666666</strong>
        </div>
        <div class="col-sm-2" style="text-align: right">

        </div>
    </div>
    <div class="table-responsive" id="tableContainer" style="height: 600px">
        <!--startprint-->
        <table class="table table-striped table-condensed table-bordered" style="width: 1300px;">
            <thead style="background-color:#eee;">
            <tr>
                <th>序号</th>
                <%--<th>店铺ID</th>--%>
                <%--<th>店铺名称</th>--%>
                <th>供应商ID</th>
                <th>供应商名称</th>
                <th>进货金额</th>
                <th>退货金额</th>
                <th>实际金额</th>
            </tr>
            </thead>
            <tbody>
            <tr v-for="(order,index) in orderList">
                <td>{{ index + 1 }}</td>
                <%--<td>{{order.REPERTORY_ID}}</td>--%>
                <%--<td>{{order.SHOP_NAME }}</td>--%>
                <td>{{order.SUPPLIER_ID}}</td>
                <td>{{order.SUPPLIER_NAME}}</td>
                <td><a :name="order.REPERTORY_ID" :id="order.SUPPLIER_ID" onclick="toKtInsCargo(this.name, this.id);" style="color: #3264C3;text-decoration: underline">{{order.AMTIN }}</a></td>
                <td><a :name="order.REPERTORY_ID" :id="order.SUPPLIER_ID" onclick="toKtOutCargo(this.name, this.id);" style="color: #3264C3;text-decoration: underline">{{order.AMTBACK }}</a></td>
                <td>{{order.FACTAMT }}</td>
            </tr>
            </tbody>
        </table>
        <!--endprint-->
    </div>
    <div style="text-align: right;margin-top: 10px;" id="pageDiv"></div>
</div>


<%--<form action="${contextPath}/ktCollect/ktOutCargo" method="post" target="_blank" id="goToDetailPage"--%>
<%--style="display:none">--%>
<%--<input type="text" id="shopIds" name="shopIds" value="">--%>
<%--</form>--%>

<form action="${contextPath}/ktcount/exportExcel" method="post" id="exportExcel" style="display:none">
    <input type="hidden" name="turnCreateDate" id="exportExcelParamTurnCreateDate">
    <input type="hidden" name="bindCreateDate" id="exportExcelParamBindCreateDate">
    <input type="hidden" name="supplierId" id="exportExcelParamSupplierId">
    <input type="hidden" name="tableType" value="ktCollect">
</form>
</body>

<!-- 打印 -->
<script type="text/javascript">
    function doPrint() {
        bdhtml=window.document.body.innerHTML;
        sprnstr="<!--startprint-->";
        eprnstr="<!--endprint-->";
        prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17);
        prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));
        window.document.body.innerHTML=prnhtml;
        window.print();
        window.location.reload(); //刷新当前页面
    }
</script>
</html>